from django.shortcuts import render
from django.views.generic import View
# Create your views here.


class WorkBenchView(View):
    """主页"""

    def get(self, request):
        return render(request,'home.html',{
            'page': 'workbench'
        })


class ClueView(View):
    """线索"""
    def get(self,request):
        return render(request, 'clue.html',{
            'page': 'clue'
        })


class ClientView(View):
    """客户"""
    def get(self, request):
        return render(request, 'client.html', {
            'page': 'client'
        })


class BusinessView(View):
    """商机"""
    def get(self, request):
        return render(request, 'business.html', {
            'page': 'business'
        })


class OfferView(View):
    """报价"""
    def get(self, request):
        return render(request, 'offer.html', {
            'page': 'offer'
        })


class ContractView(View):
    """合同"""
    def get(self, request):
        return render(request, 'contract.html', {
            'page': 'contract'
        })


class ReturnMoneyView(View):
    """回款"""
    def get(self, request):
        return render(request, 'returnmoney.html', {
            'page': 're_money'
        })


class DeliveryView(View):
    """交付"""
    def get(self, request):
        return render(request, 'delivery.html', {
            'page': 'delivery'
        })


class BillView(View):
    """发票"""
    def get(self, request):
        return render(request, 'bill.html', {
            'page': 'bill'
        })


class RefundView(View):
    """退货退款"""
    def get(self, request):
        return render(request, 'refund.html', {
            'page': 'refund'
        })
